www.gusucode.com > VC++ 禁止窗体右上角最大、最小化等按钮-源码程序 > VC++ 禁止窗体右上角最大、最小化等按钮-源码程序/code/SysButtonDoc.cpp

    // SysButtonDoc.cpp : implementation of the CSysButtonDoc class
// download by http://www.NewXing.com

#include "stdafx.h"
#include "SysButton.h"

#include "SysButtonDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSysButtonDoc

IMPLEMENT_DYNCREATE(CSysButtonDoc, CDocument)

BEGIN_MESSAGE_MAP(CSysButtonDoc, CDocument)
	//{{AFX_MSG_MAP(CSysButtonDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSysButtonDoc construction/destruction

CSysButtonDoc::CSysButtonDoc()
{
	// TODO: add one-time construction code here

}

CSysButtonDoc::~CSysButtonDoc()
{
}

BOOL CSysButtonDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CSysButtonDoc serialization

void CSysButtonDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CSysButtonDoc diagnostics

#ifdef _DEBUG
void CSysButtonDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CSysButtonDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CSysButtonDoc commands